package com.hyh.product.service;

import com.hyh.product.domain.Product;
import com.hyh.product.result.PageResult;
import org.springframework.web.multipart.MultipartFile;

public interface ProductService {

    PageResult deleteProduct(Long id);

    PageResult updateProduct(Long id);

    PageResult updateStock(Long id, Integer stock);

    Product getProductById(Long id);

    PageResult publishProduct(Product product, MultipartFile[] multipartFiles);

    PageResult publishImage(MultipartFile[] file);

    PageResult getAllProduct();

    PageResult getProductByPage(Integer page, Integer size);
}
